package com.zqxq.lottery.api.controller;

import com.zqxq.common.constant.Result;
import com.zqxq.lottery.api.feign.LotteryServerFeignClient;
import com.zqxq.lottery.entity.vo.sys.SysDiscoveryVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description ：
 * @Author ： 解风
 * @Date ： 2018/03/22 11:05
 */
@Api(value = "发现接口",tags = "发现接口")
@RestController
@Slf4j
@RequestMapping(value = "/discovery", produces = "application/json")
public class DiscoveryController {

    @Autowired
    private LotteryServerFeignClient lotteryServerFeignClient;

    @ApiOperation("获取发现列表")
    @PostMapping("/queryList")
    public Result<List<SysDiscoveryVO>> queryList(){
        return lotteryServerFeignClient.queryDiscoveryList();
    }


}
